<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
    <!--无数据提示 开始-->
    <section th:if="${#lists.isEmpty(dataMap['list'])}" class="no-data__wrap">
        <span class="no-data-ico"></span>
        <p class="mt20"><span class="c-666">抱歉，还没有，试试其它的课程吧~~~</span></p>
    </section>
    <!--无数据提示 结束-->
    <input th:value="${dataMap['size']}" hidden id="course_count" />
    <div th:if="!${#lists.isEmpty(dataMap['list'])}" class="course-list__wrap">
        <div class="row">
            <div class="col-md-4 col-lg-3" th:each="course : ${dataMap['list']}" th:attrappend="data-course=${course['id']}">
                <div class="thumbnail course-list-item">
                    <section class="pr">
                        <aside class="cm-kc-num">
                            <span class="fs12 c-fff">
                                <span th:if="${course['courseTypeKey']}!='PACKAGE'" th:text="${course['nodeNum']}+'节'">0节</span>
                                <span th:if="${course['courseTypeKey']}=='PACKAGE'" th:text="${course['courseNum']}+'门课'">0门课</span>
                            </span>
                        </aside>
                        <a href="javascript:void(0)">
                            <img class="lazy" width="100%" th:attrappend="data-original=!${#maps.isEmpty(course['imageMap'])}? ${course['imageMap']['pcUrlMap']['large']} :''"/>
                        </a>
                    </section>
                    <div class="caption">
                        <section class="cm-desc-txt__twoLine">
                            <a href="javascript:void(0)" class="fs16 c-333" th:text="${course['courseName']}"></a>
                        </section>
                        <section class="mt10 mb5 clearfix">
                            <aside class="pull-right">
                                <span class="ml5 fs12 c-999" th:text="${#strings.replace(course['containNodeType'],'、','/')}"></span>
                                <span class="ml5 fs12 c-999">
                                    学习:
                                    <span th:text="${course['initBuyNum']} + ${course['courseProfile']['buyCount']}"></span>
                                </span>
                            </aside>
                            <aside class="pull-left" th:if="${course['realPrice']} > 0 and ${course['memberCourse']} != 1">
                                <span class="fs12 c-danger"><i class="fa fa-rmb"></i></span>
                                <span class="fs16 c-danger" th:text="${course['realPrice']}"></span>
                            </aside>
                            <aside class="pull-left" th:if="${course['realPrice']} <= 0 and ${course['memberCourse']} != 1">
                                <span class="fs16 c-primary">免费</span>
                            </aside>
                            <aside class="pull-left" th:if="${course['memberCourse']} == 1">
                                <span class="fs16 c-danger">会员课</span>
                            </aside>
                        </section>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" id="course-total" th:value="${dataMap['total']}"/>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/webPage"></div>
    <!-- 分页，结束 -->
</html>
